package vno.fux.map
{
	import flash.display.Bitmap;
	import flash.display.DisplayObject;
	import flash.events.Event;
	
	import vno.fux.BaseDisplayObject;
	import vno.fux.res.pool.BitmapAttacher;
	import vno.fux.res.pool.MapResource;
	import vno.fux.res.pool.ResourcePool;
	
	public class ThumbMapView extends BaseMapView
	{
		private var _abbreMapView:BitmapAttacher;
		public function ThumbMapView(model_:MapModel, controller_:MapController)
		{
			super(model_, controller_);
			_abbreMapView = new BitmapAttacher; 
			(ResourcePool.getInstance().mapRes.getRes(_model.id) as MapResource).thumbMap.attach(_abbreMapView);
			_abbreMapView.width = this._model.width;
			_abbreMapView.height = this._model.height;
			
			this.content = _abbreMapView;
		}
		
		override public function update(evt:Event):void
		{
			this.setRegPoint([this._model.ox,this._model.oy]);
		}
	}
}